.okr-list-item {
  position: relative;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px 2px rgba(31, 35, 41, 0.05);

  margin-bottom: 16px;
  // & + & {
  //   margin-top: 8px;
  // }

  .hidden-date {
    position: absolute;
    right: -1px;
    top: -1px;
    background-color: #eff0f1;
    border-radius: 0 8px 0 8px;
    color: #646a73;
    display: none;
    font-size: 12px;
    height: 22px;
    line-height: 22px;
    padding: 0 2px;
    z-index: 3;
  }

  .objective-wrap {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    margin-bottom: 1px;
    padding: 11px 23px 11px 59px;
    position: relative;

    .objective-content {
      position: relative;
      display: flex;

      .objective-order {
        position: absolute;
        left: -44px;
        top: 17px;
        z-index: 2;

        .objective-order-move {
          color: #646a73;
          cursor: move;
          font-size: 16px;
          left: -16px;
          line-height: 1.5;
          position: absolute;
          top: 4px;
          visibility: hidden;
        }

        .objective-order-num {
          margin-top: 7px;
        }
      }

      .objective-editor-wrap {
        flex: 1 0;

        .objective-editor {
          margin: 4px 36px 4px 0;
          font-size: 16px;
        }
      }

      // 向谁对齐
      .objective-alignment-wrap {
        display: flex;
        line-height: 18px;
        min-height: 18px;
        position: relative;

        .objective-alignment-arrow {
          position: absolute;
          left: -28px;
          top: 9px;
        }

        .objective-alignmentToMe-arrow {
          position: absolute;
          left: -28px;
          top: -18px;
          transform: rotateX(180deg);
        }

        .objective-alignment-users {
          display: flex;
          flex-wrap: wrap;
        }

        .objective-alignment-op {
          height: initial;
          font-size: 12px;
          padding: 0;
          margin-left: 8px;
        }
      }
    }

    &:hover {
      .objective-order-move {
        visibility: visible !important;
      }
    }
  }

  .objective-op {
    align-items: center;
    background-color: #f0f4ff;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid hsla(213, 7%, 75%, 0.5);
    display: flex;
    padding: 12px 24px 12px 16px;

    .objective-op-wrap {
      flex: 1 1;

      .mds-btn-primary[disabled] {
        background-color: #bacefd;
        border-color: #bacefd;
        color: #fff;
      }

      .objective-op-defaultBtn {
        color: #333;

        &:hover {
          color: #0364ff;
        }
      }
    }

    .inDraft-save-tip {
      color: #8f959e;
    }

    .mds-btn {
      height: 28px;

      &:last-child {
        min-width: initial;
        width: 28px;
        padding: 0;
      }
    }
  }

  .objective-set {
    display: flex;
    flex: 0 0 auto;

    .objective-set-title {
      color: #8f959e;
      font-size: 12px;
      height: 18px;
      line-height: 18px;
    }

    .objective-set-item-weight {
      width: 55px;
      height: 32px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #646a73;
      font-size: 14px;
      line-height: 30px;
      border-radius: 6px;
    }

    .objective-set-item-weight-canEdit {
      cursor: pointer;
      &:hover {
        border: 1px solid #d8dce6;
      }
    }

    .objective-set-item {
      text-align: center;
      padding: 0 5px;
      .mds-progress-circle {
        width: 18px !important;
        height: 18px !important;
      }

      ::v-deep {
        .mds-progress-circle {
          width: 18px !important;
          height: 18px !important;
        }
      }
    }
  }

    .objective-set-content {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid transparent;
      border-radius: 4px;
      // width: 55px;
      height: 32px;
      line-height: 30px;
      font-size: 14px;
      color: #646a73;
      cursor: default;
      .mds-input {
        width: 60px;
        height: 32px;
        padding: 4px 22px 4px 8px;
      }
      .mds-btn {
        font-size: 20px;
        color: #8f959e;
        padding: 0 !important;
        margin-left: 10px;
        &:hover {
          color: #3370ff;
        }
      }
      ::v-deep {
        .mds-btn {
          font-size: 20px;
          color: #8f959e;
          padding: 0 !important;
          margin-left: 10px;

          &:hover {
            color: #3370ff;
          }
        }
      }

      .objective-set-score {
        width: 42px;
        padding: 0 8px;
        text-align: left;
        color: #354052;
        border-color: transparent;
        margin-left: 2px;
    
        &:hover {
          border-color: #ccc;
          cursor: pointer;
        }
    
        &:focus {
          border-color: #3f89ff;
          cursor: text;
        }
      }
    }
}

.popover-btn {
  height: 18px;
  font-size: 12px;
  line-height: 18px;
  max-width: 600px;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;

  span:hover {
    color: #3370ff;
  }
}

.ated-popover-btn {
  font-size: inherit;
  color: #3370ff;
}